import { createApp } from 'vue'
import './styles/index.scss'
import ElementPlus from 'element-plus'

import 'element-plus/dist/index.css'
// @ts-expect-error
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'virtual:svg-icons-register'
import App from './App.vue'
//引入自定义插件对象
import gloalComponent from '@/components'
//引入路由
import router from './router'
//引入仓库
import pinia from './stores'

const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(pinia)
app.use(router)
app.use(gloalComponent)

app.mount('#app')
